package Model;

import java.util.Stack;

public class Messages {

	Stack<Message> m_Msgs;
	
	public Messages()
	{
		m_Msgs = new Stack<Message>();
	}
	
	public byte[] pop() 
	{
		return m_Msgs.pop().getBytes();
	}

	public void push(byte[] payload) 
	{
		m_Msgs.push(new Message(payload));
	}

	public int size() {
		return m_Msgs.size();
	}

}
